import { Component, PropsWithChildren } from 'react';
import 'taro-ui/dist/style/index.scss';
import './app.scss';


class App extends Component<PropsWithChildren> {

  /**
   *
   * onLoad
   * */
  onLaunch() {
    // console.log(options);
    // console.log('这是app的生命周期onLaunch');
  }

  componentDidMount () {
    // console.log('这是app的生命周期componentDidMount');
  }

  // 切前台
  componentDidShow () {
    // console.log('这是app的生命周期componentDidShow');
  }

  // 切后台
  componentDidHide () {
    // console.log('这是app的生命周期componentDidHide');
  }

  render () {
    // this.props.children 是将要会渲染的页面
    // console.log(this, 'this');
    // console.log(this.props, 'this.props');
    return this.props.children
  }
}

export default App
